package com.company.learning.singleton;

/**
 * @Author: zhaoqi
 * @Date: 8/25/2019 6:40 PM
 * @Version 1.0
 */
//静态内部类
public class Singleton6 {

    private static class SingletonHolder {
        private static final Singleton6 INSTANCE = new Singleton6();
    }
    private Singleton6(){}

    public static final Singleton6 getInstance() {
        return SingletonHolder.INSTANCE;
    }

}
